package xml.jdom;

import java.io.IOException;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.restlet.representation.Representation;
import xml.converter.JDOMElementRepresentationConverter;

/**
 * Classe abstraite de base pour un JDOMElement
 * @author marya
 */
public abstract class AbstractJDOMElement implements JDOMElement {

    
    public abstract Element toJDOMElement();


    public Representation toXML() throws IOException , JDOMException{
        return (new JDOMElementRepresentationConverter()).convert(toJDOMElement());
    }

}
